//package com.example.prison.controller;
//
//import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
//import com.example.prison.config.Response;
//import com.example.prison.entity.SystemLog;
//import com.example.prison.service.SystemLogService;
//import com.github.pagehelper.PageInfo;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.v3.oas.annotations.Parameter;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//@Slf4j
//@Api(tags = "系统日志")
//@RestController
//@RequestMapping("/api")
//public class SystemLogController {
//
//    @Autowired
//    private SystemLogService systemLogService;
//
//    @ApiOperation("获取系统日志")
//    @GetMapping("/getSystemLog")
//    public Response<PageInfo<SystemLog>> getSystemLog(@RequestParam(value = "pageNumber", defaultValue = "1") int pageNumber,
//                                                      @RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
//                                                      @Parameter(description = "操作人")@RequestParam(required = false) String operator,
//                                                      @Parameter(description = "开始时间")@RequestParam(required = false) String beginTime,
//                                                      @Parameter(description = "结束时间")@RequestParam(required = false) String endTime) {
//        log.info("获取系统日志");
//        PageInfo<SystemLog> pageInfo = systemLogService.get(pageNumber, pageSize, operator,beginTime,endTime);
//        return Response.success("获取成功！", pageInfo);
//    }
//
//    @ApiOperation("新增系统日志")
//    @GetMapping("/addSystemLog")
//    public Response<PageInfo<SystemLog>> addSystemLog(@Parameter(description = "实现功能")@RequestParam String function) {
//        log.info("新增系统日志");
//        Integer result = systemLogService.add(function);
//        return Response.success("新增成功！");
//    }
//
//
//}
